package com.ujiuye.service;

import com.sun.org.apache.bcel.internal.generic.NEW;
import com.ujiuye.bean.ProductBean;
import com.ujiuye.dao.ProductDao;

import java.util.List;

public class ProductService {
    //获取dao
   private ProductDao pd= new ProductDao();
   public List<ProductBean> setProduct(){
       List<ProductBean> list = pd.setProduct();
       return list;
   }
   public ProductBean  findProductByid(int pid){
       return pd.findProductByid(pid);
   }
}
